'use strict';

const Controller = require('egg').Controller;

class TagController extends Controller {
  async tagslist() {
    const currentuserid = this.ctx.authUser.id;
    let res=await this.ctx.model.Tag.findAll({
        where:{
            user_id:currentuserid
        }
    })
    this.ctx.apiSuccess(res,"获取成功",200);
  }
}

module.exports = TagController;
